package com.tentative.competition.common.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(description = "查询商品列表参数")
@Data
public class ClientGoodsQueryParam extends PageParam {


    @ApiModelProperty("排序desc或则asc")
    @NotNull(message = "排序不能为空")
    private String orderBy;

    @ApiModelProperty("排序字段,默认为：gmt_post,price_sort：价格排序，quantity：库存排序，gmt_post：更新时间排序")
    @NotNull(message = "排序字段不能为空")
    private String orderType;

}
